home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntlb20 / lib / getpid.c < prev    next >
C/C++ Source or Header  |  1990-09-05  |  243b  |  9 lines

  1. #include <osbind.h>
  2. #include <basepage.h>
  3. #include "mintbind.h"
  4.  
  5. extern int __mint;
  6.  
  7. int getpid() { return __mint ? Pgetpid() : ( ((long)_base) >> 8 ); }
  8. int getppid() { return __mint ? Pgetppid() : (((long)(_base->p_parent)) >> 8); }
  9.